package lyxs_916.httpdemo;

import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import lyxs_916.http_utils.HttpUtilImageView;


/**
 * 类说明:下载一张图片放在imageView上
 * Created by 阳 on 2016/9/29
 */

public class ShowImageViewActivity extends AppCompatActivity {
    ImageView image;
    Handler handler = new Handler();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_iamge);

        image = (ImageView) findViewById(R.id.image);

        new HttpUtilImageView(
                "http://h.hiphotos.baidu.com/image/pic/item/f31fbe096b63f624ec82b20a8544ebf81b4ca3d8.jpg",
                handler, image).start();

    }


}
